﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestAjax.aspx.cs" Inherits="TestAjax" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script src="lib/ajax.js"></script>

    <script type="text/javascript">
        function GetData() {
            
            getXML("ResponseXML.aspx?act=test", "Show");
        }
        function Show(e) {

            var rssentries = e.getElementsByTagName("Id")

            for (var i = 0; i < rssentries.length; i++) {
                alert(rssentries[i].firstChild.nodeValue);
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input type="button" id="btnTest" value="Test" onclick="GetData();" />
    </div>
    </form>
</body>
</html>
